package cn.itcast.bos.service.system;/**
 * Created with IntelliJ IDEA.
 *
 * @author: SOS
 * @create: 2018-03-11 21:21
 */

import cn.itcast.bos.domain.system.Permission;
import cn.itcast.bos.domain.system.User;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @program: ideabos2.0
 * @description:
 * @author: SOS
 * @create: 2018-03-11 21:21
 **/

@Service
@Transactional
public interface PermissionService {
    List<Permission> findByUser(User user);

    List<Permission> findAll();

    void save(Permission model);
}
